﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200120B RID: 4619
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartChallengeCsReq : IMessage<StartChallengeCsReq>, IMessage, IEquatable<StartChallengeCsReq>, IDeepCloneable<StartChallengeCsReq>, IBufferMessage
	{
		// Token: 0x17003A7E RID: 14974
		// (get) Token: 0x0600CEF6 RID: 52982 RVA: 0x0022D43B File Offset: 0x0022B63B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartChallengeCsReq> Parser
		{
			get
			{
				return StartChallengeCsReq._parser;
			}
		}

		// Token: 0x17003A7F RID: 14975
		// (get) Token: 0x0600CEF7 RID: 52983 RVA: 0x0022D442 File Offset: 0x0022B642
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartChallengeCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A80 RID: 14976
		// (get) Token: 0x0600CEF8 RID: 52984 RVA: 0x0022D454 File Offset: 0x0022B654
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartChallengeCsReq.Descriptor;
			}
		}

		// Token: 0x0600CEF9 RID: 52985 RVA: 0x0022D45B File Offset: 0x0022B65B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartChallengeCsReq()
		{
		}

		// Token: 0x0600CEFA RID: 52986 RVA: 0x0022D47C File Offset: 0x0022B67C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartChallengeCsReq(StartChallengeCsReq other) : this()
		{
			this.secondLineup_ = other.secondLineup_.Clone();
			this.stageInfo_ = ((other.stageInfo_ != null) ? other.stageInfo_.Clone() : null);
			this.challengeId_ = other.challengeId_;
			this.firstLineup_ = other.firstLineup_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CEFB RID: 52987 RVA: 0x0022D4EA File Offset: 0x0022B6EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartChallengeCsReq Clone()
		{
			return new StartChallengeCsReq(this);
		}

		// Token: 0x17003A81 RID: 14977
		// (get) Token: 0x0600CEFC RID: 52988 RVA: 0x0022D4F2 File Offset: 0x0022B6F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> SecondLineup
		{
			get
			{
				return this.secondLineup_;
			}
		}

		// Token: 0x17003A82 RID: 14978
		// (get) Token: 0x0600CEFD RID: 52989 RVA: 0x0022D4FA File Offset: 0x0022B6FA
		// (set) Token: 0x0600CEFE RID: 52990 RVA: 0x0022D502 File Offset: 0x0022B702
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChallengeBuffInfo StageInfo
		{
			get
			{
				return this.stageInfo_;
			}
			set
			{
				this.stageInfo_ = value;
			}
		}

		// Token: 0x17003A83 RID: 14979
		// (get) Token: 0x0600CEFF RID: 52991 RVA: 0x0022D50B File Offset: 0x0022B70B
		// (set) Token: 0x0600CF00 RID: 52992 RVA: 0x0022D513 File Offset: 0x0022B713
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ChallengeId
		{
			get
			{
				return this.challengeId_;
			}
			set
			{
				this.challengeId_ = value;
			}
		}

		// Token: 0x17003A84 RID: 14980
		// (get) Token: 0x0600CF01 RID: 52993 RVA: 0x0022D51C File Offset: 0x0022B71C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> FirstLineup
		{
			get
			{
				return this.firstLineup_;
			}
		}

		// Token: 0x0600CF02 RID: 52994 RVA: 0x0022D524 File Offset: 0x0022B724
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartChallengeCsReq);
		}

		// Token: 0x0600CF03 RID: 52995 RVA: 0x0022D534 File Offset: 0x0022B734
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartChallengeCsReq other)
		{
			return other != null && (other == this || (this.secondLineup_.Equals(other.secondLineup_) && object.Equals(this.StageInfo, other.StageInfo) && this.ChallengeId == other.ChallengeId && this.firstLineup_.Equals(other.firstLineup_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CF04 RID: 52996 RVA: 0x0022D5AC File Offset: 0x0022B7AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.secondLineup_.GetHashCode();
			if (this.stageInfo_ != null)
			{
				num ^= this.StageInfo.GetHashCode();
			}
			if (this.ChallengeId != 0U)
			{
				num ^= this.ChallengeId.GetHashCode();
			}
			num ^= this.firstLineup_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CF05 RID: 52997 RVA: 0x0022D61D File Offset: 0x0022B81D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CF06 RID: 52998 RVA: 0x0022D625 File Offset: 0x0022B825
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CF07 RID: 52999 RVA: 0x0022D630 File Offset: 0x0022B830
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.secondLineup_.WriteTo(ref output, StartChallengeCsReq._repeated_secondLineup_codec);
			this.firstLineup_.WriteTo(ref output, StartChallengeCsReq._repeated_firstLineup_codec);
			if (this.stageInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.StageInfo);
			}
			if (this.ChallengeId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.ChallengeId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CF08 RID: 53000 RVA: 0x0022D6AC File Offset: 0x0022B8AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.secondLineup_.CalculateSize(StartChallengeCsReq._repeated_secondLineup_codec);
			if (this.stageInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StageInfo);
			}
			if (this.ChallengeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ChallengeId);
			}
			num += this.firstLineup_.CalculateSize(StartChallengeCsReq._repeated_firstLineup_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CF09 RID: 53001 RVA: 0x0022D728 File Offset: 0x0022B928
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartChallengeCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.secondLineup_.Add(other.secondLineup_);
			if (other.stageInfo_ != null)
			{
				if (this.stageInfo_ == null)
				{
					this.StageInfo = new ChallengeBuffInfo();
				}
				this.StageInfo.MergeFrom(other.StageInfo);
			}
			if (other.ChallengeId != 0U)
			{
				this.ChallengeId = other.ChallengeId;
			}
			this.firstLineup_.Add(other.firstLineup_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CF0A RID: 53002 RVA: 0x0022D7B2 File Offset: 0x0022B9B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CF0B RID: 53003 RVA: 0x0022D7BC File Offset: 0x0022B9BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 80U)
				{
					if (num == 72U || num == 74U)
					{
						this.secondLineup_.AddEntriesFrom(ref input, StartChallengeCsReq._repeated_secondLineup_codec);
						continue;
					}
					if (num == 80U)
					{
						goto IL_51;
					}
				}
				else
				{
					if (num == 82U)
					{
						goto IL_51;
					}
					if (num == 98U)
					{
						if (this.stageInfo_ == null)
						{
							this.StageInfo = new ChallengeBuffInfo();
						}
						input.ReadMessage(this.StageInfo);
						continue;
					}
					if (num == 104U)
					{
						this.ChallengeId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_51:
				this.firstLineup_.AddEntriesFrom(ref input, StartChallengeCsReq._repeated_firstLineup_codec);
			}
		}

		// Token: 0x040052F2 RID: 21234
		private static readonly MessageParser<StartChallengeCsReq> _parser = new MessageParser<StartChallengeCsReq>(() => new StartChallengeCsReq());

		// Token: 0x040052F3 RID: 21235
		private UnknownFieldSet _unknownFields;

		// Token: 0x040052F4 RID: 21236
		public const int SecondLineupFieldNumber = 9;

		// Token: 0x040052F5 RID: 21237
		private static readonly FieldCodec<uint> _repeated_secondLineup_codec = FieldCodec.ForUInt32(74U);

		// Token: 0x040052F6 RID: 21238
		private readonly RepeatedField<uint> secondLineup_ = new RepeatedField<uint>();

		// Token: 0x040052F7 RID: 21239
		public const int StageInfoFieldNumber = 12;

		// Token: 0x040052F8 RID: 21240
		private ChallengeBuffInfo stageInfo_;

		// Token: 0x040052F9 RID: 21241
		public const int ChallengeIdFieldNumber = 13;

		// Token: 0x040052FA RID: 21242
		private uint challengeId_;

		// Token: 0x040052FB RID: 21243
		public const int FirstLineupFieldNumber = 10;

		// Token: 0x040052FC RID: 21244
		private static readonly FieldCodec<uint> _repeated_firstLineup_codec = FieldCodec.ForUInt32(82U);

		// Token: 0x040052FD RID: 21245
		private readonly RepeatedField<uint> firstLineup_ = new RepeatedField<uint>();
	}
}
